package com.ag.answergames.entity;

import com.ag.answergames.util.IdJsonSerialize;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

@Data
@TableName("question_wrong")
public class WrongQuestionEntity {

    @JsonSerialize(using = IdJsonSerialize.class)
    private Long id;

    @JsonSerialize(using = IdJsonSerialize.class)
    @TableField(value = "user_id")
    private Long userId;

    @JsonSerialize(using = IdJsonSerialize.class)
    @TableField(value = "question_id")
    private Long questionId;

    private String choose;

    @TableField(value = "wrong_count")
    private Integer wrongCount;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(value = "grade_code")
    private long gradeCode;

    @TableField(value = "subject_code")
    private long subjectCode;
}
